{pc:get sql="SELECT * FROM v9_poster WHERE spaceid = 2 AND type='images' AND disabled=0 ORDER BY listorder ASC" num="10"} 
  {loop $data $r}
     <?php
     $arr= (array)json_decode($r['setting']);
     foreach ($arr as $key => $val){
              $imageurl = $val->imageurl;
              $linkurl = $val->linkurl;
              $alt = $val->alt;
        }
     ?>
     <div class="nybanner" style="background: url(<?php echo $imageurl; ?>) no-repeat center;"></div>
  {/loop}
  {/pc}
<section class="key-serch">
  <div class="tem_inner">
    <div class="met_position">您当前的位置： <a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)}</div>
    <div class="search" id="headSearch">
      <form action="{APP_PATH}index.php" method="get">
        <input type="hidden" name="m" value="search"/>
        <input type="hidden" name="c" value="index"/>
        <input type="hidden" name="a" value="init"/>
        <input type="hidden" name="typeid" value="1" id="typeid"/>
        <input type="hidden" name="siteid" value="{$siteid}" id="siteid"/>
        <span class="navsearch_input">
        <input type="text" name="q" size="20" placeholder="请输入搜索关键词">
        </span>
        <button type="submit" class="searchgo"><i class="fa fa-search" aria-hidden="true"></i></button>
      </form>
    </div>
  </div>
</section>
